import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { DiscussionPost } from './entities/discussion-post.entity';
import { DiscussionPostService } from './discussion-post.service';
import { DiscussionPostController } from './discussion-post.controller';
import { Comment } from './entities/comment.entity';
import { CommentService } from './comment.service';
import { CommentController } from './comment.controller';

@Module({
  imports: [TypeOrmModule.forFeature([DiscussionPost, Comment])],
  controllers: [DiscussionPostController, CommentController],
  providers: [DiscussionPostService, CommentService],
  exports: [TypeOrmModule, DiscussionPostService, CommentService],
})
export class DiscussionPostModule {} 